package org.t236.feign.user;

import org.springframework.stereotype.Component;
import org.t236.commons.model.AjaxResult;
import org.t236.commons.model.User;

@Component
public class UserRemoteClientFallback implements UserRemoteClient{
    @Override
    public AjaxResult find(Long userId) {
        return AjaxResult.error("用户find(long userId)微服务正忙");
    }

    @Override
    public AjaxResult findAll() {
        return AjaxResult.error("用户findAll微服务正忙");
    }

    @Override
    public AjaxResult add(User user) {
        return AjaxResult.error("用户add微服务正忙");
    }
}
